package org.shiki.hrm.service.impl;

import org.shiki.hrm.domain.Employee;
import org.shiki.hrm.mapper.EmployeeMapper;
import org.shiki.hrm.service.IEmployeeService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.shiki.hrm.util.AjaxResult;
import org.shiki.hrm.vo.UserInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author shiki
 * @since 2022-03-09
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements IEmployeeService {

	@Autowired
	private EmployeeMapper employeeMapper;

	@Override
	public AjaxResult getTenantInfoById(Long id) {
		UserInfoVo userInfoVo = employeeMapper.getTenantInfoById(id);
		return AjaxResult.me().setResultObj(userInfoVo);
	}
}
